home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: hku.open-forum,hku.cc.forum,hk.comp.pc,comp.lang.c++,comp.lang.pascal.misc
- Path: hkusuc.hku.hk!hkusua!kong
- From: kong@hkusua.hku.hk (Kong Kang Chung)
- Subject: Pascal and C (Was: Is Pascal worth learning )
- X-Nntp-Posting-Host: hkusua.hku.hk
- Message-ID: <DL98xy.Byn.0.-s@hkusuc.hku.hk>
- Sender: usenet@hkusuc.hku.hk
- Organization: The University of Hong Kong
- X-Newsreader: TIN [version 1.1 PL6]
- References: <SDLEE.96Jan15161338@champion.cs.hku.hk>
- Date: Tue, 16 Jan 1996 03:41:58 GMT
-
- :
- : Some people do not consider 'breaking' in loops a good style of writing
- : structured programs. In fact, if you HAVE TO do so, you can do that
- : with GOTO in pascal. However, as GOTO is discouraged in structured
- : programming, breaks are also not encouraged.
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- I am pretty surprised that breaks are not encouraged. To me they sound
- very logical in many many cases, and I always thought using them is a
- clear and clean programming practice. GOTO is different because there
- could be no simple reason why you have to jump to another part of your
- program. If I was given a piece of code full of GOTOs I will have tough
- time trying to figure out what each GOTO will jump to and why. But for
- these are always obvious and self-explanatory. IMHO the work-around
- of breaks (i.e. setting a flag to be checked at the loop condition) is
- more messy. You will have to declare the flag, remember to initialize
- it, and have the variable checked at every loop.
-
- :
- :
-
- : >> For the original poster, so far I have only seen one
- : >> employer in Hong Kong that specifically requires Pascal. It's
- : >> one of those news agencies. And believe it or not, they use
- : >> VAX!!
- :
- : There are even more jobs for dBase, Clipper, FoxPro programmers.
- : So, you should persuade all people to learn them, rather than Pascal
- : or C.
- :
- Sorry? I did not persuade any person to learn anything. I was just
- trying to say "Pascal is not very powerful and not many jobs require it."
- I have seen more than (1000?) programmer employment ads in HK, the one I
- mentioned is the only one that states specifically they require
- Pascal. Even in the U.S. I haven't met any employers who consider Pascal
- programming an useful skill. BTW, if you don't know already, the VAX line of
- machine has reached its dead end. The last new VAX model was introduced
- like two years ? ago.
-
- And... since the original poster is a econ. major, I will suggest him
- try doing better in his major instead of dipping into computers. Computers
- are great for fun, but in HK,
- he can make more $$ and might have a brighter future if he is in the
- finance sector. (sh.. don't tell my boss I said this!!!)
-
-
- -- All opinions are mine. They have nothing to do with my employer.
-